package com.itheima.service.impl;

import com.itheima.mapper.UserDao;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @PackageName: com.itheima.service.impl
 * @ClassName: UserServiceimpl
 * @Author: lin
 * @Date: 2020/6/18 11:07
 * @Description:
 */
@Service
public class UserServiceimpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public boolean save(User user) {
        return userDao.save(user);
    }

    @Override
    public User toGat(Integer id) {
        return userDao.toGat(id);
    }
}
